Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <h4>Image with no hspace:</h4> <p><img src="smiley.gif" alt="Smiley face" width="42" height="42" align="middle"> This is some text. This is some text. This is some text.</p> <h4>Image with hspace:</h4> <p><img src="smiley.gif" alt="Smiley face" width="42" height="42" align="middle" hspace="20">This is some text. This is some text. This is some text.</p> <p>The hspace attribute is not supported in HTML5. Use CSS instead.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_img_hspace by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:23:39 GMT --> </html>
Result:
Try it Yourself - © w3schools.com